package com.zhima.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author zhima
 * @since 2023-08-25
 */
@Data
@TableName("oj_file")
@ApiModel(value = "OjFile对象", description = "")
public class OjFile implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("文件id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("上传时间")
    @TableField("upload_time")
    private Date uploadTime;

    @ApiModelProperty("上传文件的用户id")
    @TableField("upload_user_id")
    private Long uploadUserId;

    @ApiModelProperty("文件的md5值")
    @TableField("file_md5")
    private String fileMd5;

    @ApiModelProperty("文件所在桶")
    @TableField("bucket")
    private String bucket;

    @ApiModelProperty("桶内路径")
    @TableField("uri")
    private String uri;

    @ApiModelProperty("文件大小、字节为单位")
    @TableField("size")
    private Long size;

    @ApiModelProperty("文件名（包括后缀）")
    @TableField("file_name")
    private String fileName;
}
